package com.xiaoshou.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.springframework.stereotype.Controller;

@Controller
@Results({
	@Result(name="toLoginPage",location="login.jsp",type="dispatcher")
	
})
public class LoginAction extends BaseAction{

	private static final long serialVersionUID = 1L;
	private String task;

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Action("login")
	public String toLoginPage(){
		
		System.out.println(task);
		return "toLoginPage";
	}

	public String getTask() {
		return task;
	}

	public void setTask(String task) {
		this.task = task;
	}

}
